package org.kabeja.dxf.entity;

/**
 * @author shutao
 * @since 2022/4/24 17:54
 */
public class DXFStyle {
    private String name = "";
    private String fontFile = "";
    private String bigFontFile = "";
    private double textHeight = 0.0D;
    private double widthFactor = 1.0D;
    private double obliqueAngle = 0.0D;
    private int textGenerationFlag = 0;
    private int flags = 0;
    private double lastHeight = 0.0D;

    public DXFStyle() {
    }

    public String getBigFontFile() {
        return this.bigFontFile;
    }

    public void setBigFontFile(String var1) {
        this.bigFontFile = var1;
    }

    public String getFontFile() {
        return this.fontFile;
    }

    public void setFontFile(String var1) {
        this.fontFile = var1;
    }

    public double getLastHeight() {
        return this.lastHeight;
    }

    public void setLastHeight(double var1) {
        this.lastHeight = var1;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String var1) {
        this.name = var1;
    }

    public double getObliqueAngle() {
        return this.obliqueAngle;
    }

    public void setObliqueAngle(double var1) {
        this.obliqueAngle = var1;
    }

    public int getTextGenerationFlag() {
        return this.textGenerationFlag;
    }

    public void setTextGenerationFlag(int var1) {
        this.textGenerationFlag = var1;
    }

    public double getTextHeight() {
        return this.textHeight;
    }

    public void setTextHeight(double var1) {
        this.textHeight = var1;
    }

    public double getWidthFactor() {
        return this.widthFactor;
    }

    public void setWidthFactor(double var1) {
        this.widthFactor = var1;
    }

    public int getFlags() {
        return this.flags;
    }

    public void setFlags(int var1) {
        this.flags = var1;
    }

    public boolean isBackward() {
        return this.textGenerationFlag == 2;
    }

    public void setBackward(boolean var1) {
        if (var1) {
            this.textGenerationFlag = 2;
        } else {
            this.textGenerationFlag = 0;
        }

    }

    public boolean isUpsideDown() {
        return this.textGenerationFlag == 4;
    }

    public void setUpsideDown(boolean var1) {
        if (var1) {
            this.textGenerationFlag = 4;
        } else {
            this.textGenerationFlag = 0;
        }

    }
}
